<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<s:url value="/user/someone/unLogin" id="login" includeParams="none"/>
<div style="width: 100%; background-color: silver;text-align: right;">
	<s:if test="#session.loginInfo != null">
		欢迎你 <s:property value="%{#session.loginInfo.userName}"/>
		<s:url id="logout" value="/user/%{#session.loginInfo.userName}/logout"/>
		<s:a href="%{logout}">退出</s:a><br>
	</s:if>
	<s:else>
		<s:a href="%{login}">login</s:a><br>
	</s:else>
</div>